﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.NginxClient
{
    public class NginxServerConfigLocation
    {
        /// <summary>
        /// Url路径
        /// </summary>
        [Required(ErrorMessage = "路径是必需的")]
        public string Path { get; set; }
        /// <summary>
        /// 根目录
        /// </summary>
        public string Root { get; set; }
        /// <summary>
        /// 代理地址
        /// </summary>
        public string ProxyPass { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// 是否启用 WebSocket
        /// </summary>
        public bool IsWebSocket { get; set; } = false;
        /// <summary>
        /// 附加指令
        /// </summary>
        public List<string> AdditionalDirectives { get; set; } = new List<string>();
    }
}
